﻿<%@ Page Title="Nhập triệu chứng" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="EnterBH.aspx.cs" Inherits="EnterBH" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script type="text/javascript">
        function setHeight(tbTrieuChung) {
            tbTrieuChung.style.height = tbTrieuChung.scrollHeight + "px";
        }
        function btnTimLoiClick() {
            document.getElementById('<%=buttonTimLoi.ClientID%>').click();
        }
        function btnLoiKhacClick() {
            document.getElementById('<%=buttonLoiKhac.ClientID%>').click();
        }
    </script>
    <style type="text/css">
        .buttonXem
        {
            cursor: pointer;
        }
    </style>
    <asp:ToolkitScriptManager ID="ToolketScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ToolkitScriptManager>
    <asp:TextBox ID="tbTrieuChung" runat="server" Width="359px" BorderColor="#FF6600"
        BorderStyle="Groove" Height="18px" Rows="1" Style="margin-left: 0px" TextMode="MultiLine"
        ToolTip="Nhập triệu chứng" Columns="20" onkeyup="setHeight(this);" onkeydown="setHeight(this);"></asp:TextBox>
    <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="AutoCompleteAjaxRequest"
        ServicePath="AutoComplete.asmx" MinimumPrefixLength="2" CompletionInterval="100"
        EnableCaching="false" CompletionSetCount="10" TargetControlID="tbTrieuChung"
        FirstRowSelected="false">
    </asp:AutoCompleteExtender>
    <br />
    <a id="A2" onclick="btnTimLoiClick()" runat="server">
        <img src="~/Images/blue-1button-hi.png" alt="alt" class="buttonXem" id="Img1" runat="server"
            width="100" height="35" style="padding-top: 20px" />
    </a>
    <br />
    <br />
    <div id="popup" runat="server">
        • <b>Nguyên Nhân:</b>
        <asp:Label ID="labelNguyenNhan" runat="server"></asp:Label>
        <br />
        • <b>Khắc Phục:</b>
        <asp:Label ID="labelKhacPhuc" runat="server"></asp:Label>
        <br />
    </div>
    <a id="A1" onclick="btnLoiKhacClick()" runat="server">
        <img src="~/Images/loikhac.png" alt="alt" class="buttonXem" id="btnLoiKhac" runat="server"
            width="100" height="35" style="padding-top: 20px" />
    </a>
    <asp:Button ID="buttonTimLoi" runat="server" Style="display: none" OnClick="buttonTimLoi_Click" />
    <asp:Button ID="buttonLoiKhac" runat="server" Style="display: none" OnClick="buttonLoiKhac_Click" />
</asp:Content>
